package com.guigu.tms.oms.controller;

import com.guigu.tms.oms.service.impl.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("agencyScope")
public class AgencyScopeController {

    @Autowired
    private OrderServiceImpl orderService;

    @GetMapping("getOrderAgencyByPosition")
    public String getOrderAgencyByPosition(String position){
       return orderService.getOrderAgencyId(position);
    }


}
